package algorithmExample.stack;

import java.util.LinkedList;

/**
 * @Author: zhangrongqing
 * @Date: 2019/11/12 10:31
 */
public class LinkedListTest {
    public static void main(String[] args) {
        LinkedList linkedList = new LinkedList();
        linkedList.add(1);
        linkedList.add(2);
        linkedList.add(3);
        linkedList.add(4);
        System.out.println("linkedlist poll first value:" + linkedList.poll());
        System.out.println("linkedlist pop first value:" + linkedList.pop());
    }
}
